Telegram Group & Telegram Channel
Ответ к предыдущей задаче для новичков.

class Calculator:
@staticmethod
def add(n1, n2):
return n1 + n2

@staticmethod
def subtract(n1, n2):
return n1 - n2

@staticmethod
def divide(n1, n2):
if n2 != 0:
return n1 / n2

@staticmethod
def multiply(n1, n2):
return n1 * n2

Еще 3 варианта решения мы закинули на наш сайт: https://pythonturbo.ru/zadacha-prostoj-oop-kalkulyator/

#новичок #coбес



tg-me.com/pythonturboru/417
Create:
Last Update:

Ответ к предыдущей задаче для новичков.

class Calculator:
@staticmethod
def add(n1, n2):
return n1 + n2

@staticmethod
def subtract(n1, n2):
return n1 - n2

@staticmethod
def divide(n1, n2):
if n2 != 0:
return n1 / n2

@staticmethod
def multiply(n1, n2):
return n1 * n2

Еще 3 варианта решения мы закинули на наш сайт: https://pythonturbo.ru/zadacha-prostoj-oop-kalkulyator/

#новичок #coбес

BY Python Turbo. Уютное сообщество Python разработчиков.


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/pythonturboru/417

View MORE
Open in Telegram


Python Turbo Уютное сообщество Python разработчиков Telegram | DID YOU KNOW?

Date: |

The S&P 500 slumped 1.8% on Monday and Tuesday, thanks to China Evergrande, the Chinese property company that looks like it is ready to default on its more-than $300 billion in debt. Cries of the next Lehman Brothers—or maybe the next Silverado?—echoed through the canyons of Wall Street as investors prepared for the worst.

Python Turbo Уютное сообщество Python разработчиков from pl


Telegram Python Turbo. Уютное сообщество Python разработчиков.
FROM USA